import { instance } from "../utils/request";
const getBusinesssPagination = async (params) => {
	return await instance.get("/Businesss/Pagination", params);
};

const addBusinesss = async (data) => {
	return await instance.post("/Businesss/Add", data);
};

const updateBusinesss = async (data) => {
	return await instance.post("/Businesss/Update", data);
};

const getBusinesssDetail = async (id) => {
	return await instance.get("/Businesss/Detail", { id : id });
};

const deleteBusinesss = async (id) => {
	return await instance.post("/Businesss/Delete", { id : id });
};

const businesssApi = {
	getBusinesssPagination,
	addBusinesss,
	updateBusinesss,
	getBusinesssDetail,
	deleteBusinesss,
};

export default businesssApi
